using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using UwinEducation.Domain.Entities;
using UwinEducation.Shared.Enums;
using UwinEducation.Shared.Models;

namespace UwinEducation.Domain.IRepositories
{
    /// <summary>
    /// 描述管理仓储接口
    /// </summary>
    public interface IDescriptionRepository : IRepository<Description, Guid>
    {
        /// <summary>
        /// 根据类型获取描述列表
        /// </summary>
        /// <param name="type">描述类型</param>
        /// <returns>描述列表</returns>
        Task<List<Description>> GetByTypeAsync(DescriptionType type);

        /// <summary>
        /// 根据标题模糊查询
        /// </summary>
        /// <param name="title">标题关键字</param>
        /// <returns>描述列表</returns>
        Task<List<Description>> GetByTitleAsync(string title);

        /// <summary>
        /// 分页查询描述
        /// </summary>
        /// <param name="request">分页请求</param>
        /// <returns>分页结果</returns>
        Task<PagedResult<Description>> GetPagedAsync(DescriptionPageRequest request);
    }
} 